[gd_scene load_steps=5 format=3 uid="uid://bgnlhdfa2uu5v"]

[ext_resource type="Script" uid="uid://rxjim4owlyhp" path="res://scripts/test_door.gd" id="1_os47j"]

[sub_resource type="BoxShape3D" id="BoxShape3D_birtl"]
size = Vector3(0.1, 2, 1)

[sub_resource type="BoxMesh" id="BoxMesh_lu0y2"]
size = Vector3(0.1, 2, 1)

[sub_resource type="CylinderMesh" id="CylinderMesh_rbggs"]
top_radius = 0.05
bottom_radius = 0.05
height = 0.2

[node name="TestDoor" type="Node3D"]
script = ExtResource("1_os47j")

[node name="hinge" type="HingeJoint3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0.5)
node_b = NodePath("../door_pivot/door")
angular_limit/enable = true

[node name="door_pivot" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.5)

[node name="door" type="RigidBody3D" parent="door_pivot"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.5)
collision_mask = 2
can_sleep = false

[node name="CollisionShape3D" type="CollisionShape3D" parent="door_pivot/door"]
shape = SubResource("BoxShape3D_birtl")

[node name="door" type="MeshInstance3D" parent="door_pivot/door"]
mesh = SubResource("BoxMesh_lu0y2")
skeleton = NodePath("../../..")

[node name="handle" type="MeshInstance3D" parent="door_pivot/door"]
transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, -0.428122)
mesh = SubResource("CylinderMesh_rbggs")
skeleton = NodePath("../../..")
